package com.dingreading.cloud.admin.util;

public enum AdminStaffRoleEnum {

    SUPER_ADMIN("manager", "超级管理员"),
    LEADER("leader", "经理"),
    FINANCE("finance", "财务"),
    OPERATE("operate", "运营"),
    SUPERVISE("supervise", "运营督导"),
    ;

    //成员变量
    private final String identify;
    private final String name;

    public String getIdentify() {
        return identify;
    }

    public String getName() {
        return name;
    }


    //构造方法
    AdminStaffRoleEnum(String identify, String name) {
        this.identify = identify;
        this.name = name;
    }

    public static String getStatus(String identify) {
        for (AdminStaffRoleEnum data : AdminStaffRoleEnum.values()) {
            if (data.getIdentify().equals(identify)) {
                return data.getName();
            }
        }
        return "";
    }

}
